home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_class_sequencer.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
814b
|
45 lines
# Jedi Knight Cog Script
#
# CLASS_SEQUENCER.COG
#
# Class COG for the Sequencer charges
#
# Set the sequencers to proximity devices after a certain time.
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
symbols
message created
message timer
end
# ========================================================================================
code
created:
SetTimerEx(2.0, GetSenderRef(), GetThingSignature(GetSenderRef()), 0);
Return;
timer:
if(GetParam(0) == GetThingSignature(GetSenderId()))
{
// WF_PROXIMITY, Weapon will explode when something touches its sphere.
SetWeaponFlags(GetSenderId(), 0x1000);
// gives it a bigger sphere
SetThingCollideSize(GetSenderId(), 0.3);
}
Return;
end